package com.tbit.uqbike.webmanager.business.maintain_performance.dao.log;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.webmanager.business.maintain_performance.object.PowerChangePerformance;
import com.tbit.uqbike.webmanager.business.maintain_performance.object.dto.stat.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@DS(DataSource.LOG)
public interface PowerChangePerformanceDao extends BaseMapper<PowerChangePerformance> {
    List<PowerChangePerformanceDetail> queryDetailPage(PowerChangePerformanceDetailReq req);

    List<PerformanceChartDo> queryPerformanceChart(@Param("accountId") Integer accountId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("accountUserId") Integer accountUserId, @Param("machineType") Integer machineType, @Param("isValid") Integer isValid);

    List<PerformanceOverviewResp> queryOverviewPageByUser(PerformanceOverviewReq req);

    List<PerformanceOverviewResp> queryOverviewPageByRegion(PerformanceOverviewReq req);
}